﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using System.IO;
using Microsoft.Xna.Framework.Graphics;

namespace Minigolf
{
    public static class Extensions
    {
        public static bool IntersectsPoint(this Rectangle rectA, Vector2 vecB)
        {
            if (vecB.X >= rectA.X && vecB.X <= rectA.X + rectA.Width)
                if (vecB.Y >= rectA.Y && vecB.Y <= rectA.Y + rectA.Height)
                    return true;

            return false;
        }
    }
}
